class Student{
    private String name;
    private int age;
   static int class1 = 106;

    //    private static String classroom="云二";
    private  static String classroom;
    static{
        classroom = "云二";
        System.out.println("这是静态代码块");
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public static String getClassroom() {
        return classroom;
    }
}
public class Test2 {
    public static void main(String[] args) {
        Student s1 = new Student("历",19);
        Student s2 = new Student("飞",20);
         System.out.println(Student.class1);
//        System.out.println(s1.getName() );
//        System.out.println(s1.getAge());
//        System.out.println(s1.getName()+"是"+Student.getClassroom());
//        System.out.println(s2.getName() );
//        System.out.println(s2.getAge());
//        System.out.println(s2.getName()+"是"+Student.getClassroom());
    }

}